import java.util.*;
public class Two{
  public static void main (String [] args){
    Scanner reader=new Scanner (System.in );
    String str=reader.nextLine();
    StringBuffer s =new StringBuffer(str);
    System.out.print(s.reverse().toString());
  }
}